onEvent('recipes', (event) => {

    const id = id = 'nr2:base/first/pneumaticcraft_pc/';
    const recipes = [
        {
            inputs: [
                { item: 'immersiveengineering:wire_copper', count:2 },
                { item: 'emendatusenigmatica:invar_plate', count:1 },
                { item: 'pneumaticcraft:plastic', count:1 },
                { item: 'kubejs:soldering_tin_bucket' , count:1 }
            ],
            pressure: 2.0,
            results: [{ item: 'pneumaticcraft:empty_pcb', count: 2 }],
            id: 'nr2_pneumaticcraft:empty_pcb'
        },
        {
            inputs: [
                { item: 'create:brass_casing', count:1 },
                { item: 'pneumaticcraft:plastic', count:2 },
                { item: 'emendatusenigmatica:bronze_plate', count:4 },
                { item: 'minecraft:quartz_block', count:1 },
                
            ],
            pressure: 3.5,
            results: [{ item: 'rftoolsbase:machine_frame', count: 2 }],
            id: 'nr2_rftoolsbase:machine_frame'
        },
        {
            inputs: [
                { item: 'emendatusenigmatica:invar_ingot', count:2 },
                { item: 'minecraft:redstone', count:3 },
                { item: 'minecraft:obsidian', count:1 },
            ],
            pressure: 2.0,
            results: [{ item: 'pneumaticcraft:ingot_iron_compressed', count: 4 }],
            id: 'nr2_emendatusenigmatica:invar_ingot'
        },
        {
            inputs: [
                { item: 'emendatusenigmatica:invar_block', count:1 },
                { item: 'minecraft:redstone', count:20 },
                { item: 'minecraft:obsidian', count:6},
            ],
            pressure: 3.0,
            results: [{ item: 'pneumaticcraft:compressed_iron_block', count: 2 }],
            id: 'nr2_pneumaticcraft:compressed_iron_block'
        },
        {
            inputs: [
                { item: 'kubejs:party_1_ingot', count:2 },
                { item: 'quark:orange_crystal', count:12 },
                { item: 'pneumaticcraft:plastic', count:2 },
            ],
            pressure: 3.0,
            results: [{ item: 'quark:yellow_crystal', count: 2 }],
            id: 'nr2_quark:yellow_crystal'
        },
        {
            inputs: [
                { item: 'immersiveengineering:wire_copper', count:6 },
                { item: 'quark:lit_lamp', count:1 },
                { item: 'astralsorcery:aquamarine', count:2 },
                { item: 'pneumaticcraft:plastic', count:1 },
                
            ],
            pressure: 3.0,
            results: [{ item: 'pneumaticcraft:capacitor', count: 4 }],
            id: 'nr2_pneumaticcraft:capacitor'
        },
        {
            inputs: [
                { item: 'immersiveengineering:wire_copper', count:6 },
                { item: 'quark:lit_lamp', count:1 },
                { item: 'emendatusenigmatica:invar_plate', count:2 },
                { item: 'pneumaticcraft:plastic', count:1 },
            ],
            pressure: 3.0,
            results: [{ item: 'pneumaticcraft:transistor', count: 4 }],
            id: 'nr2_pneumaticcraft:transistor'
        },
        {
            inputs: [
                { item: 'pneumaticcraft:transistor', count:2 },
                { item: 'pneumaticcraft:capacitor', count:2 },
                { item: 'create:electron_tube', count:2 },
                { item: 'pneumaticcraft:unassembled_pcb', count:1 },
            ],
            pressure: 3.0,
            results: [{ item: 'pneumaticcraft:printed_circuit_board', count: 1}],
            id: 'nr2_pneumaticcraft:printed_circuit_board'
        },
        {
            inputs: [
                { item: 'quark:black_crystal', count:32 },
                { item: 'quark:orange_crystal', count:32 },
                { item: 'quark:white_crystal', count:32 },
                { item: 'quark:red_crystal', count:32 },
                { item: 'quark:yellow_crystal', count:32 },
                { item: 'pneumaticcraft:plastic', count:6 },
                
            ],
            pressure: 4.0,
            results: [{ item: 'kubejs:box', count: 1}],
            id: 'nr2_kubejs:box'
        },
        {
            inputs: [
                { item: 'kubejs:box_1', count:1 }
                
            ],
            pressure: 4.0,
            results: [
                { item: 'minecraft:diamond', count: 20},
                { item: 'minecraft:emerald', count: 20},
                { item: 'minecraft:lapis_lazuli', count: 20},
                
            ],
            id: 'nr2_kubejs:box_1'
        },
        {
            inputs: [
                { item: 'pneumaticcraft:plastic_bucket', count: 1},
                { item: 'minecraft:lapis_lazuli', count: 8}
                
            ],
            pressure: 4.0,
            results: [
                
                { item: 'emendatusenigmatica:molten_lapis_bucket', count:1 }
                
            ],
            id: 'nr2_emendatusenigmatica:molten_lapis_bucket'
        },
        {
            inputs: [
                { item: 'pneumaticcraft:plastic_bucket', count: 1},
                { item: 'minecraft:diamond', count: 8}
            ],
            pressure: 4.0,
            results: [
                { item: 'tconstruct:molten_diamond_bucket', count:1 }
            ],
            id: 'nr2_tconstruct:molten_diamond_bucket'
        },
        {
            inputs: [
                { item: 'pneumaticcraft:plastic_bucket', count: 1},
                { item: 'minecraft:emerald', count: 8}
            ],
            pressure: 4.0,
            results: [
                { item: 'tconstruct:molten_emerald_bucket', count:1 }
                
            ],
            id: 'nr2_tconstruct:molten_emerald_bucket'
        },
        {
            inputs: [
                { item: 'minecraft:iron_bars', count: 1},
                { item: 'create:andesite_alloy', count: 1}
            ],
            pressure: 4.0,
            results: [
                { item: 'create:shaft', count:5 }
                
            ],
            id: 'nr2_create:shaft'
        },
        {
            inputs: [
                { item: 'quark:shingles', count: 1},
                { item: 'quark:orange_crystal', count: 1},
                { item: 'kubejs:coarse_crystal_ingot', count: 1}
            ],
            pressure: 4.0,
            results: [
                { item: 'minecraft:crafting_table', count:2 }
                
            ],
            id: 'nr2_minecraft:crafting_table'
        },
        {
            inputs: [
                { item: 'minecraft:iron_ingot', count: 1},
                { item: 'kubejs:polluted_dust', count: 2}
            ],
            pressure: 4.0,
            results: [
                { item: 'create:andesite_alloy', count:8 }
                
            ],
            id: 'nr2_create:andesite_alloy'
        },
        {
            inputs: [
                { item: 'pneumaticcraft:ingot_iron_compressed', count: 1},
                { item: 'emendatusenigmatica:bronze_plate', count: 2},
                { item: 'minecraft:redstone_torch', count: 2}
            ],
            pressure: 4.0,
            results: [
                { item: 'pneumaticcraft:turbine_blade', count:1 }
                
            ],
            id: 'nr2_create:andesite_alloy'
        },



    ];

    

    recipes.forEach((recipe) => {
        var array = [];
        recipe.inputs.forEach((input) => {
            input.type = 'pneumaticcraft:stacked_item';
            array.push(input);
        });

        event.custom({
                type: 'pneumaticcraft:pressure_chamber',
                inputs: array,
                pressure: recipe.pressure,
                results: recipe.results
            }).id(recipe.id);
    });
});